package cn.ncu.wechat.dao;

import cn.ncu.wechat.model.PointsRule;
import cn.ncu.wechat.model.dto.PointRuleDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
* @author 
* @description 针对表【points_rule(积分规则表)】的数据库操作Mapper
* @createDate 2025-01-07 16:16:52
* @Entity cn.ncu.wechat.modle.PointsRule
*/
public interface PointsRuleMapper extends BaseMapper<PointsRule> {
    @Update("UPDATE points_rule SET consume_points_rate = #{consumePoints}, " +
            "min_consume_amount = #{minConsumeAmount}, register_points = #{registerPoints}")
    int updatePointRule(PointRuleDTO pointRuleDTO);
}




